package com.imooc.es;

import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.annotation.ComponentScan;
import tk.mybatis.spring.annotation.MapperScan;

/**
 * @author 顾志杰
 * @date 2020/9/7-14:53
 */
@SpringBootApplication
@MapperScan(basePackages = "com.imooc.es.mapper")
@ComponentScan(basePackages = {"com.imooc","org.n3r.idworker"})
@EnableEurekaClient
public class EsApplication {

    public static void main(String[] args) {
        new SpringApplicationBuilder(EsApplication.class)
                .web(WebApplicationType.SERVLET)
                .run(args);
    }
}
